package diva.pap.affiliate;

import java.util.List;

import static diva.lib.lang.Lang.list;

import diva.android_library.rpc.Response;
import diva.lib.json.JSONType;
import diva.pap.SellNotificationRequest;

public class AffiliateSellNotificationRequest extends
    SellNotificationRequest<AffiliateSellNotificationRequest> {

  public AffiliateSellNotificationRequest(Response<AffiliateSellNotificationRequest> response) {
    super(response);
  }

  public List<AffiliateSellNotificationData> getSells() {
    List<AffiliateSellNotificationData> sells = list();
    for (JSONType json : getSellsJson())
      sells.add(new AffiliateSellNotificationData(json.asObject()));
    return sells;
  }

}
